// 2维变换
//

#ifndef ALICE_GRAPHICS_TRANSFORM_H_
#define ALICE_GRAPHICS_TRANSFORM_H_

#include "vector2d.h"

namespace alice {

class Transform {
  public:
    double X, Y;

  public:
    Transform(double x=0, double y=0):X(x), Y(y) {}

    void TranslateX(double x) {X += x;}
    void TranslateY(double y) {Y += y;}
    void Translate(Vector2D v) {X += v.X; Y += v.Y;}

};

}

#endif // ALICE_GRAPHICS_TRANSFORM_H_